package org.microframework.cloud.logs;

import org.microframework.base.core.datasource.annotation.EnableMicroDataSource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 日志管理模块启动类
 *
 * @author zs
 * @version 1.0.0
 * @since 2024-06-14
 * @description 日志服务应用，包含登录日志、操作日志、系统日志和API调用日志的管理
 */
@ComponentScan(basePackages = { "org.microframework" })
@EnableAsync
@EnableDiscoveryClient
@SpringBootApplication
@EnableMicroDataSource  // 启用微服务数据源模块
public class MicroCloudLogsApplication {

	public static void main(String[] args) {
		SpringApplication.run(MicroCloudLogsApplication.class, args);
		System.out.println("微服务日志中心启动成功！");
	}
}